package bean;

public class User {
    private int userId; // 用户编号
    private String userName; // 用户名称
    private String password; // 用户密码
    private int status; // 用户身份
    private int employeeId; // 用户关联员工编号

    // 验证登录用户对象
    public User(String userName, String password) {
        this.userName = userName;
        this.password = password;
    }

    // 获取登录用户的id、身份
    public User(int userId, int status) {
        this.userId = userId;
        this.status = status;
    }

    // 添加用户对象
    public User(String userName, String password, int status, int employeeId) {
        this.userName = userName;
        this.password = password;
        this.status = status;
        this.employeeId = employeeId;
    }

    // 查询用户对象
    public User(int userId, String userName, int status, int employeeId) {
        this.userId = userId;
        this.userName = userName;
        this.status = status;
        this.employeeId = employeeId;
    }

    // 编辑用户对象
    public User(String password, int status) {
        this.password = password;
        this.status = status;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(int employeeId) {
        this.employeeId = employeeId;
    }
}
